home *** CD-ROM | disk | FTP | other *** search
- Path: moreinfo.com!usenet
- From: "J.R. Stoner" <jstoner@isi.com>
- Newsgroups: comp.lang.c
- Subject: C constant expression declarations
- Date: Wed, 14 Feb 1996 18:15:17 -0800
- Organization: Heironamous Botch's Murk Works
- Message-ID: <31229735.41C67EA6@isi.com>
- NNTP-Posting-Host: dakota.isi.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (X11; I; SunOS 4.1.4 sun4c)
-
- This is a query (I have checked the FAQ) into something that strikes me
- as a dumbfoundedly stupid issue, but I will ask it anyway :)
-
- Normally, I will do things such as:
-
- #define EXPR1 1
- #define EXPR2 2
-
- ...and so on. Lately, I have been observing in code from other people
- equivalent declarations such as:
-
- #define EXPR1 (1)
- #define EXPR2 (2)
-
- I have seen in the FAQ the business of declaring varargs macros that
- are invoked with something like:
-
- DEBUG(("This is a printf string\n"))
-
- ...but it does not seem relevant here.
-
- Is there, in fact, a reason for putting parens around "simple" constant
- expressions? A reason that did not exist previously?
- --
- J.R. Stoner, Ferroequinologist - jstoner@isi.com
-